/* 全局重置：统一基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Heiti SC", Inter, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #fafbfc;
    position: relative;
    overflow-x: hidden; /* 防止背景装饰溢出 */
}

/* 1. 背景马卡龙装饰（动态漂浮） */
.base-bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(90px);
    animation: baseFloat 18s infinite ease-in-out;
    z-index: 0;
    pointer-events: none; /* 不影响交互 */
}

.base-bg-pink {
    width: 700px;
    height: 700px;
    background-color: #ffb3c1; /* 马卡龙粉 */
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.base-bg-blue {
    width: 800px;
    height: 800px;
    background-color: #b3d9ff; /* 马卡龙蓝 */
    bottom: -300px;
    left: 20%;
    animation-delay: 4s;
}

.base-bg-green {
    width: 600px;
    height: 600px;
    background-color: #b3ffcc; /* 马卡龙绿 */
    top: 40%;
    right: -200px;
    animation-delay: 8s;
}

/* 背景漂浮动画 */
@keyframes baseFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 60px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 2. 导航栏样式（马卡龙主色） */
.base-nav {
    background-color: #fff !important; /* 白色底 + 阴影 */
    box-shadow: 0 2px 10px rgba(179, 217, 255, 0.2);
    border-bottom: 1px solid #f0f5ff;
    position: relative;
    z-index: 2;
}

/* 导航品牌 */
.base-brand {
    color: #ff8fa3 !important; /* 马卡龙粉主色 */
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.base-brand:hover {
    color: #ff6b8e !important;
}

/* 导航列表 */
.base-nav-list .nav-item {
    margin-right: 0.5rem;
}

.base-nav-link {
    color: #6b7280 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px; /* 圆角 */
    transition: all 0.3s ease;
}

.base-nav-link:hover {
    color: #ff8fa3 !important;
    background-color: #fff0f3; /* 浅粉背景 */
}

/* 用户菜单 */
.base-user-link {
    color: #6b7280 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.base-user-link:hover {
    color: #ff8fa3 !important;
    background-color: #fff0f3;
}

/* 下拉菜单 */
.base-dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(179, 217, 255, 0.2);
    padding: 0.5rem 0;
    margin-top: 0.25rem !important;
}

.base-dropdown-item {
    color: #6b7280 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease;
}

.base-dropdown-item:hover {
    color: #ff8fa3 !important;
    background-color: #fff0f3 !important;
}

/* 登录按钮（未登录状态） */
.base-login-btn {
    color: #ff8fa3 !important;
    font-weight: 500;
    border: 1px solid #ffb3c1;
    border-radius: 8px !important;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.base-login-btn:hover {
    color: #fff !important;
    background-color: #ff8fa3;
}

/* 3. 消息提示框样式 */
.base-alert-container {
    position: relative;
    z-index: 1;
}

.base-alert {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(179, 217, 255, 0.15);
    padding: 1rem 1.25rem;
    animation: baseFadeIn 0.5s ease;
}

/* 不同类型提示框配色（马卡龙色系） */
.base-alert-success {
    background-color: #f0fff4 !important;
    color: #4ade80 !important;
}

.base-alert-danger {
    background-color: #fff0f0 !important;
    color: #f87171 !important;
}

.base-alert-info {
    background-color: #f0f9ff !important;
    color: #60a5fa !important;
}

.base-alert-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.base-alert-close:hover {
    opacity: 1;
}

/* 4. 内容容器样式 */
.base-content-container {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px); /* 适配底部 */
}

/* 5. 底部样式 */
.base-footer {
    background-color: #fff;
    border-top: 1px solid #f0f5ff;
    position: relative;
    z-index: 1;
}

/* 6. 通用动画 */
@keyframes baseFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式适配（小屏幕） */
@media (max-width: 768px) {
    .base-nav-list {
        margin-bottom: 1rem;
    }

    .base-user-menu {
        margin-top: 0.5rem;
    }

    .base-login-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}